package com.fcl.blog.service;

import com.fcl.blog.po.Blog;
import com.fcl.blog.po.BlogTags;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 付
 * @Date 2023/10/24 12:11
 * @Version 1.0
 * @description
 * @since 1.0
 */
public interface BlogService {
    List<Blog> selectListBlog();
    List<Blog> selectListAdminBlog();


    int insertBlog(Blog blog);
    int insertBlogTags(BlogTags blogTags);

    List<Blog> searchBlog(String title,String typeId);
    List<Blog> searchAdminBlog(String title,String typeId);
    int deleteById(Long id);

    Long blogCount();
    Long blogAdminCount();

    List<Blog> selectNewRecommend();

    List<Blog> selectByTypeId(Long id);
}
